#include"list.h"
using namespace bite;
int main()
{
	list<int>s1;
	s1.push_back(1);
	s1.push_back(2);
	s1.push_back(3);
	s1.push_back(4);
	s1.push_back(5);
	list<int>::iterator it = s1.begin();
	while (it != s1.end())
	{
		cout << *it << " ";
		++it;
	}
	cout << endl;

	cout << s1.front() << endl;
	cout << s1.back() << endl;

	cout << "size = " << s1.size() << endl;

	s1.insert(s1.begin(), 10);
	list<int>::iterator it1 = s1.begin();
	while (it1 != s1.end())
	{
		cout << *it1 << " ";
		++it1;
	}
	cout << endl;


	/*list<int>s2(10, 5);
	list<int>::iterator it = s2.begin();
	while (it != s2.end())
	{
		cout << *it << " ";
		++it;
	}
	cout << endl;*/

	//list<int>s3(s2.begin(), s2.end());
	//list<int>::iterator it1 = s3.begin();
	//while (it1 != s3.end())
	//{
	//	cout << *it1 << " ";
	//	++it1;
	//}
	//cout << endl;

	/*list<int>s4(s2);
	list<int>::iterator it1 = s4.begin();
	while (it1 != s4.end())
	{
		cout << *it1 << " ";
		++it1;
	}
	cout << endl;

	list<int>s5;
	s5 = s4;
	for (auto e : s5)
	{
		cout << e << " ";
	}
	cout << endl;*/

	return 0;
}